github.com/go-pg/pg/v10/orm.SelectQuery.q (field)
49 uses
github.com/go-pg/pg/v10/orm (current package)
query.go#L796: q: q,
select.go#L13: q *Query
select.go#L24: q: q,
select.go#L42: q: q.q.Clone(),
select.go#L48: return q.q
select.go#L56: if q.q.stickyErr != nil {
select.go#L57: return nil, q.q.stickyErr
select.go#L60: cteCount := q.count != "" && (len(q.q.group) > 0 || q.isDistinct())
select.go#L65: if len(q.q.with) > 0 {
select.go#L66: b, err = q.q.appendWith(fmter, b)
select.go#L72: if len(q.q.union) > 0 {
select.go#L78: if len(q.q.distinctOn) > 0 {
select.go#L80: for i, app := range q.q.distinctOn {
select.go#L87: } else if q.q.distinctOn != nil {
select.go#L100: if q.q.hasTables() {
select.go#L108: err = q.q.forEachHasOneJoin(func(j *join) error {
select.go#L110: b, err = j.appendHasOneJoin(fmter, b, q.q)
select.go#L117: for _, j := range q.q.joins {
select.go#L124: if len(q.q.where) > 0 || q.q.isSoftDelete() {
select.go#L126: b, err = q.q.appendWhere(fmter, b)
select.go#L132: if len(q.q.group) > 0 {
select.go#L134: for i, f := range q.q.group {
select.go#L145: if len(q.q.having) > 0 {
select.go#L147: for i, f := range q.q.having {
select.go#L161: if len(q.q.order) > 0 {
select.go#L163: for i, f := range q.q.order {
select.go#L174: if q.q.limit != 0 {
select.go#L176: b = strconv.AppendInt(b, int64(q.q.limit), 10)
select.go#L179: if q.q.offset != 0 {
select.go#L181: b = strconv.AppendInt(b, int64(q.q.offset), 10)
select.go#L184: if q.q.selFor != nil {
select.go#L186: b, err = q.q.selFor.AppendQuery(fmter, b)
select.go#L197: if len(q.q.union) > 0 {
select.go#L200: for _, u := range q.q.union {
select.go#L211: return b, q.q.stickyErr
select.go#L218: case q.q.columns != nil:
select.go#L219: b, err = q.q.appendColumns(fmter, b)
select.go#L223: case q.q.hasExplicitTableModel():
select.go#L224: table := q.q.tableModel.Table()
select.go#L236: err = q.q.forEachHasOneJoin(func(j *join) error {
select.go#L255: if q.q.distinctOn != nil {
select.go#L258: for _, column := range q.q.columns {
select.go#L271: tables := q.q.tables
select.go#L273: if q.q.modelHasTableName() {
select.go#L274: table := q.q.tableModel.Table()
select.go#L289: if q.q.modelHasTableAlias() {
select.go#L291: b = append(b, q.q.tableModel.Table().Alias...)